import 'package:get/get.dart';
import 'package:vischat/data/datasources/remote/auth_remote.dart';
import 'package:vischat/data/repositories/auth_repository.dart';
import 'package:vischat/modules/home/home_controller.dart';
import 'package:vischat/modules/home/posts/posts_controller.dart';
import 'package:vischat/modules/home/socialize/socialize_controller.dart';
import 'package:vischat/modules/home/user/user_controller.dart';

class HomeBinding extends Bindings {
  @override
  void dependencies() {
    // 底部导航栏页面需要的依赖统一在HomeBinding进行注入
    Get.lazyPut(() => AuthRemote(Get.find()));
    Get.lazyPut(() => AuthRepository(Get.find(), Get.find()));
    Get.lazyPut(() => SocializeController(Get.find(), Get.find(), Get.find()));
    Get.lazyPut(() => PostsController());
    Get.lazyPut(() => UserController(Get.find()));
    Get.lazyPut(() => HomeController(Get.find()));
  }
}
